package test.exception;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class CatchProcessExceptionAction implements ActionHandler {

	public void execute(ExecutionContext executionContext) throws Exception {
		Throwable e = executionContext.getException();
		
		System.out.println("当前流程级别扑捉到异常 ==>异常名称："+e.getClass().getName()+
				"; 异常消息:"+e.getMessage());
	}

}
